const Set = function (key, value) {
    localStorage.setItem(key, value);
}
const Get = function (key) {
    return localStorage.getItem(key);
}
const Clear = function (key) {
    if (key) {
        localStorage.removeItem(key);
    } else {
        localStorage.clear();
    }
}


export const GetToken = function () {
    return Get('login_token');
}
export const SetToken = function (value) {
    Set('login_token', value)
}
export const ClearToken = function () {
    return Clear('login_token');
}

